package com.quark.model.vo.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class MenuVO {

    @ApiModelProperty(value="父类id")
    @NotNull(message = "父类id不能为空！")
    private String parentId;

    @NotBlank(message = "菜单名称不能为空！")
    @ApiModelProperty(value = "菜单名称")
    private String title;

    @ApiModelProperty(value = "许可")
    private String permissions;

    /**
     * 类型1目录2菜单
     */
    @ApiModelProperty(value="类型1目录2菜单3按钮")
    @NotBlank(message = "类型不能为空！")
    @Length(min = 1, max = 2)
    private String type;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空")
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
     * 组件
     */
    @ApiModelProperty(value="组件")
    private String component;

    /**
     * 路径地址
     */
    @ApiModelProperty(value = "路径地址")
    private String path;

    /**
     * 路径名称
     */
    @ApiModelProperty(value="路径名称")
    private String name;

    /**
     * 菜单图标
     */
    @ApiModelProperty(value="菜单图标")
    private String icon;

    /**
     * 是否显示0显示1不显示
     */
    @ApiModelProperty(value="是否显示0显示1不显示")
    private Integer hidden;

}
